import request from '@/api/request'

// 获取会员信息
export function getMembershipInfo() {
  return request('GET', '/api/membership/info', {})
}

// 获取会员套餐列表
export function getMembershipPlans() {
  return request('GET', '/api/membership/plans', {})
}

// 检查应用创建权限
export function checkAppPermission() {
  return request('GET', '/api/membership/check-app-permission', {})
}

// 获取账单记录
export function getBillingRecords(params) {
  return request('GET', '/api/membership/billing-records', params)
}

// 获取用户操作日志
export function getUserLogs(params) {
  return request('GET', '/api/membership/user-logs', params)
}